package com.vogue.supplymall.order.domain.dao;

import java.util.List;
import java.util.Map;

import com.vogue.supplymall.common.domain.dto.RefundMaxCountInfo;
import com.vogue.supplymall.order.domain.model.RefundDetail;

/**
 * The interface Refund detail dao.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-03-16
 */
public interface RefundDetailDao extends BaseDao<RefundDetail, Long> {
	/**
	 * 得到退货单明细
	 *
	 * @param refundOrderId the refund order id
	 * @return list
	 */
	List<Map<String,Object>> findRefundOrderDetail(Long refundOrderId);
	/**
	 * 得到退货单图片
	 *
	 * @param refundOrderId the refund order id
	 * @return list
	 */
	List<Map<String,Object>> findRefundOrderRefundUpload(Long refundOrderId);

	/**
	 * 得到最大可退货数量
	 *
	 * @param refundMaxCountInfo the refund max count info
	 * @return refund max quantity
	 */
	List<Map<String,Object>> getRefundMaxQuantity(RefundMaxCountInfo refundMaxCountInfo);

	/**
	 * 订单item相同的退货订单商品数量总和
	 *
	 * @param oiid the oiid
	 * @return the integer
	 */
	Integer findRefundquantitySum(Long oiid);
}
